<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/11/22
 * Time: 10:07
 */
namespace app\modules\api\controllers;
use app\models\Vip;
use app\modules\api\models\VipOrderSubmitForm;

class VipController extends Controller{
     public function  actionSave(){
        $user_id =  \Yii::$app->user->id;
        $store_id = $this->store->id;
        $form = new VipOrderSubmitForm();
        $form->attributes = \Yii::$app->request->post();
        $form->store_id = $store_id;
        $form->user_id = $user_id;
        return $this->renderJson($form->save());
    }

    public function actionPay(){
         $res = \yii::$app->request->post();
         $id = $res['id'];

    }
}